﻿@using Choucius.Boilerplate9.WorkStations.Dto
@using Choucius.Boilerplate9.Web.Models.Common.Modals
@model WorkStationDto
@{
    Layout = null;
}
@await Html.PartialAsync("~/Views/Shared/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(L("EditWorkStation")))
<form name="WorkStationEditForm" role="form" class="form-horizontal">
    <input type="hidden" name="Id" value="@Model.Id" />
    <div class="modal-body">
        <div class="form-group row required">
            <label class="col-md-3 col-form-label" for="line-code">@L("WorkStationId")</label>
            <div class="col-md-9">
                <input id="line-code" type="text" class="form-control" name="WorkStationId" value="@Model.WorkStationId" required maxlength="64" minlength="2">
            </div>
        </div>
        <div class="form-group row required">
            <label class="col-md-3 col-form-label" for="line-name">@L("WorkStationName")</label>
            <div class="col-md-9">
                <input id="line-name" type="text" class="form-control" name="WorkStationName" value="@Model.WorkStationName" required maxlength="128">
            </div>
        </div>
    </div>
    @await Html.PartialAsync("~/Views/Shared/Modals/_ModalFooterWithSaveAndCancel.cshtml")
</form>

<script src="~/view-resources/Views/WorkStations/_EditModal.js" asp-append-version="true"></script>
